﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="AddContract.aspx.cs"
    Inherits="ContractManagementSystem.ViewContract" Title="ContractManagementSystem" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PanelContent" runat="server">
    <asp:UpdatePanel runat="server">
        <ContentTemplate>
            <div class="divWrap">
                <h2 class="divTitle">
                    Add Contract</h2>
                <div style="float: left; margin: 10px 0px 0px 0px;width: 48%">
                    <fieldset style="padding: 10px 10px 95px 20px" class="border">
                        <legend><b>Contractor Infomation</b></legend>
                        <table>
                            <tr>
                                <td>
                                    BirthDate:
                                </td>
                                <td>
                                    <asp:TextBox ID="BirthDateTextBox" Enabled="False" BackColor="white" runat="server"></asp:TextBox>
                                    <asp:ImageButton ID="ImageBirthDate" runat="server" CssClass="calender" ImageUrl="~/Images/calendar.png" />
                                    <cc1:CalendarExtender ID="CalendarExtender3" CssClass="cal_Theme1" runat="server"
                                        TargetControlID="BirthDateTextBox" PopupButtonID="ImageBirthDate" PopupPosition="Right">
                                    </cc1:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    FullName:
                                </td>
                                <td>
                                    <asp:TextBox ID="FullNameTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Gender:
                                </td>
                                <td>
                                    <asp:DropDownList ID="GenderDropDownList" runat="server">
                                        <asp:ListItem>Male</asp:ListItem>
                                        <asp:ListItem>FeMale</asp:ListItem>
                                        <asp:ListItem>Other</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Email:
                                </td>
                                <td>
                                    <asp:TextBox ID="EmailTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Address:
                                </td>
                                <td>
                                    <asp:TextBox ID="AddressTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    PhoneNumber 1:
                                </td>
                                <td>
                                    <asp:TextBox ID="PhoneNumberTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    PhoneNumber 2:
                                </td>
                                <td>
                                    <asp:TextBox ID="PhoneNumbersTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Branch:
                                </td>
                                <td>
                                    <asp:TextBox ID="BranchTextBox" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <div style="padding: 10px 0 0 10px; float: left;width: 50%">
                    <fieldset style="padding: 10px 10px 53px 20px" class="border">
                        <legend><b>Contract Infomation</b></legend>
                        <table>
                            <tr>
                                <td>
                                    ContractType
                                </td>
                                <td>
                                    <asp:DropDownList ID="ContractTypeDropDownList" runat="server" Width="170px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Line Manager
                                </td>
                                <td>
                                    <asp:DropDownList ID="ManagerDropDownList" runat="server" Width="170px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Consultant
                                </td>
                                <td>
                                    <asp:DropDownList ID="ConsultantDropDownList" runat="server" Width="170px" />
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    StartDate
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="StartDateTextbox"></asp:TextBox>
                                    <asp:ImageButton ID="Image" runat="server" CssClass="calender" ImageUrl="~/Images/calendar.png" />
                                    <cc1:CalendarExtender ID="CalendarExtender1" CssClass="cal_Theme1" runat="server"
                                        TargetControlID="StartDateTextbox" PopupButtonID="Image" PopupPosition="Right">
                                    </cc1:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    EndDate
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="EndDateTextbox"></asp:TextBox>
                                    <asp:ImageButton ID="Image1" runat="server" CssClass="calender" ImageUrl="~/Images/calendar.png" />
                                    <cc1:CalendarExtender ID="CalendarExtender2" CssClass="cal_Theme1" runat="server"
                                        TargetControlID="EndDateTextbox" PopupButtonID="Image1" PopupPosition="Right">
                                    </cc1:CalendarExtender>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Content
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="ContentTextbox" TextMode="MultiLine" Height="115px"
                                        Width="329px" CssClass="textArea"/>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <div style="text-align: center; float: left; width: 100%; padding: 20px;">
                    <asp:Label ID="MessageLabel" runat="server"></asp:Label>
                    <asp:Button runat="server" ID="AddButton" Text="Submit" OnClick="AddButtonClick" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
